package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.CommunityFloors;
import com.ruoyi.system.domain.dto.CommunityFloorsDto;
import com.ruoyi.system.domain.vo.CommunityFloorsVo;

/**
 * floorsMapper接口
 * 
 * @author yhb
 * @date 2024-03-26
 */
public interface CommunityFloorsMapper 
{
    /**
     * 查询floors
     * 
     * @param id floors主键
     * @return floors
     */
    public CommunityFloors selectCommunityFloorsById(Long id);

    /**
     * 查询floors列表
     * 
     * @param communityFloorsDto floors
     * @return floors集合
     */
    public List<CommunityFloors> selectCommunityFloorsList(CommunityFloorsDto communityFloorsDto);

    /**
     * 新增floors
     * 
     * @param communityFloorsDto floors
     * @return 结果
     */
    public int insertCommunityFloors(CommunityFloorsDto communityFloorsDto);

    /**
     * 修改floors
     * 
     * @param communityFloors floors
     * @return 结果
     */
    public int updateCommunityFloors(CommunityFloors communityFloors);

    /**
     * 删除floors
     * 
     * @param id floors主键
     * @return 结果
     */
    public int deleteCommunityFloorsById(Long id);

    /**
     * 批量删除floors
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCommunityFloorsByIds(Long[] ids);

    public CommunityFloorsDto getByName(String name, Long unitId);

    List<CommunityFloorsVo> listFloors();
}
